//
// Created by yonghu0 on 25-10-24.
//

#include "CommentList.h"
#include "MongoDataBase.h"

CommentList *CommentList::GetInstance()
{
    static CommentList commentlist;
    return &commentlist;
}

Json::Value CommentList::SelectCommentListByAdmin(Json::Value &queryjson)
{
    return MoDB::GetInstance()->SelectCommentListByAdmin(queryjson);
}

Json::Value CommentList::GetFatherComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->GetFatherComment(queryjson);
}

Json::Value CommentList::GetSonComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->GetSonComment(queryjson);
}

Json::Value CommentList::InsertFatherComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->InsertFatherComment(queryjson);
}

Json::Value CommentList::InsertSonComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->InsertSonComment(queryjson);
}

Json::Value CommentList::DeleteFatherComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->DeleteFatherComment(queryjson);
}

Json::Value CommentList::DeleteSonComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->DeleteSonComment(queryjson);
}

bool CommentList::DeleteArticleComment(Json::Value &queryjson)
{
    return MoDB::GetInstance()->DeleteArticleComment(queryjson);
}

CommentList::CommentList()
{
}

CommentList::~CommentList()
{
}
